import React, { memo } from 'react'
import routes from '@/router'
import { useRoutes } from 'react-router-dom'
import Header from 'components/header'
import Footer from './components/footer'

const App = memo(() => {
  return (
    <div className="app">
      <Header />
      <div className="content">{useRoutes(routes)}</div>
      <Footer />
    </div>
  )
})

export default App
